<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="ZH-CN">
<c:choose>
  <c:when test="${student_name }==null">
    <c:redirect url="/LWGL"></c:redirect>
  </c:when>
</c:choose>
<head>
<title>论文终稿提交</title>
<meta http-equiv="X-UA-Compatible" content="IE=9" >  
<meta name="keywords" content="吉珠,吉林大学,吉林大学珠海学院,吉林大学珠海学院论文管理">
<meta name="content-type" content="text/html" charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="${pageContext.request.contextPath}/pages1/css/bootstrap.css" type="text/css">
<script src="${pageContext.request.contextPath}/pages1/js/jquery-2.1.1.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/pages1/js/bootstrap.js" type="text/javascript"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/jquery-easyui-1.4.1/jquery.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/jquery-easyui-1.4.1/jquery.easyui.min.js"></script>
<link rel="stylesheet" href="<%=request.getContextPath()%>/jquery-easyui-1.4.1/themes/gray/easyui.css" type="text/css"></link>
<link rel="stylesheet" href="<%=request.getContextPath()%>/jquery-easyui-1.4.1/themes/icon.css" type="text/css"></link>
<script type="text/javascript" src="<%=request.getContextPath()%>/jquery-easyui-1.4.1/locale/easyui-lang-zh_CN.js"></script>
<style>
.col-xs-3 {
	padding: 1px;
	height: 550px;

}
.col-xs-9 {
	height: 550px;
	
}
.container {
	width: 1280px !important;
}

.xs11 {
	margin-top: 10px;
	margin-left: 30px;
}
#right
{
position:absolute;
right:0px;
width:300px;
}

#xs12 {
	height: 444px;
	width: 313px;
}
#xs11 {
	height: 140px;
}
#xs2{
	width:600px;
	height:35px;
	}
#xs1 {
	height: 100px;
	width: 80px;
}
body {
	font-size: 12px;
}
ul {
	margin: 0;
	padding: 7px;
}
ul li {
	height: 22px;
	vertical-align: bottom;
}
.actived {height:25px;border-top:3px solid #ff9900;;border-right:1px solid #AAC7E9; border-left:1px solid #AAC7E9;border-bottom:1px solid #AAC7E9;background:#FFDAB9;}

.panel-group{padding:1px; margin：1px;}
</style>
<script type="text/javascript" language="javascript">
function g(o){return document.getElementById(o);}
function hoverli(n){
for(var i=1;i<=19;i++){
{g('tb_'+i).className='';}
g('tb_'+n).className='actived';}
}

var ensurer_table;
$(function() {
	ensurer_table = $('#ensurer_table')
	.datagrid({
				url : '<%=request.getContextPath()%>/xsxt/ensurer_table',
				pagination : true,
				pageSize : 5,
				pageList : [ 5, 10, 20 ],
				singleSelect : true,
				fitColumns : true,
				rownumbers : true,
				columns : [ [
						{
							title : '论文选题名称',
							field : 'thesistitle_name',
							width : 100,
							align : 'center',
						},
						{
							title : '课题类型',
							field : 'thesistitle_type',
							width : 30,
							align : 'center',
						},
						{
							title : '课题来源',
							field : 'thesissource_name',
							width : 40,
							align : 'center',
						},
						{
							title : '指导教师',
							field : 'teacher_name',
							width : 40,
							align : 'center',
						},
						{
							title : '查重结果查看下载',
							field : 'thesistitle_ensureresulturl',
							width : 50,
							align : 'center',
							formatter : function(value, row, index) {
								var a = "<button type='button' class='btn btn-warning btn-sm' disabled='disabled'>查看</button>&nbsp;&nbsp;&nbsp;";
								var b = "<a href='/LWGL/xsxt/ensurer_result?dre="+row.thesistitle_ensureresulturl+"'><span class='glyphicon glyphicon-save' style='font-size:25px; color:#F00' ></span></a>";
								return a + b;
							}
						},
/*						{
							title : '指导教师意见',
							field : 'tchmemo_memo',
							width : 40,
							align : 'center',
							formatter : function(value, row, index) {
								var a = "<button type='button' onclick=checkMsg() class='btn btn-warning btn-sm'>查看</button>";
								console.info("1");
								return a ;
							},
						},*/
						{
							title : '论文重复率',
							field : 'thesistitle_ensurepercent',
							width : 40,
							align : 'center',
							formatter : function(value, row, index) {
								var a; 
								if(row.thesistitle_ensurepercent>=30)
								{
									a = "<p style='color:#F00'>高于30%</p>";
								}
								else
								{
									a ="<p style='color:green'>低于30%</p>";
								}
								return a;
							},
						},
						{
							title : '查重次数',
							field : 'thesistitle_ensurecount',
							width : 40,
							align : 'center',
							formatter : function(value, row, index) {
								var a; 
								a = "<p style='color:#F00'>1</p>";
								return a;
							},
							
						}
						] ],
				});
});

function checkMsg(msg) {
	console.info(2);
	$.ajax({
		url:'<%=request.getContextPath()%>/xsxt/ensurer_memo',
		success:function(r){
			if(r.msg==null || r.msg=="")
			{
				$.messager.alert('指导教师意见','没有相关意见');
			}
			else
			{
				$.messager.alert('指导教师意见', r.msg);
			}
		},
	})
	
}

</script>



</head>
<body>
<!--全局框架 开始 conteiner-->
<div class="container"> 
  <!--标题头图片-->
  <div class="row">
    <div class="body_top"> <img src="${pageContext.request.contextPath}/pages1/img/head.png" align="center" width="1280px"/> </div>
  </div>
  <!--全局12栅格 规划全局区域图线 开始 row+ col-->
  <div class="row">
    <jsp:include page="stu_siderbar.jsp"></jsp:include>
        <!--全局框架结束--> 

<!--右侧用户操作模块 占全局9栅格-->

<div class="col-xs-9"style="border:2px solid #25465d">
      <div class="row">
            <div class="col-xs-5  xs11" style="margin-bottom:5px; margin-top:5px;"> <strong><font size="3">流程管理》查看论文查重结果</font></strong> </div>
            <div class="col-xs-5 xs11" id="right" style="margin-bottom:5px; margin-top:5px;">
              <p><b><font size="3">毕业设计流转状态：评审阶段
              </b></font> </p></div>
          </div>
          <div class="row">
            <div class="col-xs-11  xs11" style="margin-bottom:5px; margin-top:0px;">
              <div class="panel panel-default" style="margin-bottom:5px; margin-top:0px;">
                <div class="panel-heading" align="left"> <a data-toggle="collapse" data-parent="#accordion"  href="#collapseHelp" class="glyphicon glyphicon-chevron-down"> 操作指南 </a> </div>
                <div id="collapseHelp" class="panel-collapse collapse">
                  <div class="panel-body">学生论文由老师修改审核后的定稿提交给系秘书进行统一的论文查重工作：
                    <ul>
              <li>由各系的秘书设计查重通过比例。</li>
              <li>学生浏览查重结果文档以及查重通过状态。</li>
              <li>学生查重结果如果通过查重标准，则根据指导教师的意见，进行少量修改后，则可以进入论文终稿提交环节。</li>
              <li>如果学生查重结果不通过，则需要根据指导教师的意见，重新修改论文定稿，并由论文查重（定）稿提交环节提交论文定稿。</li>
              <li>再次由教师确认后，提交给系秘书进行二次查重。</li>
                    </ul>
                  </div>
                </div>
              </div>
            </div>
          </div>
          
          <div class="row">
            <div class="col-xs-11 xs11" style="margin-bottom:5px; margin-top:5px;">
              <form name="">
              
              <!-- 查重表格 -->
              
                <table id="ensurer_table" >
                </table>
                
                <!-- 查重表格结束 -->
              </form>
            </div>
          </div>
          
          
         
</div>
<!--全局框架开始 conteiner-->
</div>
<div class="row" style="background-color:#25465d"">
  <p  align="center" style="color:white;background-color:#25465d"><strong>用户单位：</strong>吉林大学珠海学院&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>版权所有：</strong>吉林大学珠海学院计算机科学与技术系</p>
</div>
<!--全局框架开始 conteiner-->
</div>
</body>
</html>